package online.lona.mc.mod.ymer;

import io.netty.buffer.Unpooled;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.common.network.internal.FMLProxyPacket;
import online.lona.mc.YmerServer;

public class StandardYmerServer implements YmerServer {
    @Override
    public void sendChannelMessage(byte[] bytes) {
        Ymer.channel.sendToServer(new FMLProxyPacket(new PacketBuffer(Unpooled.wrappedBuffer(bytes)), Ymer.MODID));
    }
}
